<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>服务器信息</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
@include("/common/cssAndJs.html"){}
</head>
<body>
	<div class="x-body layui-anim layui-anim-up">
		<blockquote class="layui-elem-quote">当前时间:${strutil.formatDate(date(),"yyyy-MM-dd HH:mm:ss")}</blockquote>
		<fieldset class="layui-elem-field">
			<legend>CPU</legend>
			<div class="layui-field-box">
				<div class="layui-col-md12">
					<div class="layui-card">
						<div class="layui-card-body">
							<div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
								<div carousel-item="">
									<ul class="layui-row layui-col-space10 layui-this">
										<li class="layui-col-xs2"><a href="javascript:;" class="x-admin-backlog-body">
												<h3>核心数</h3>
												<p>
													<cite>${server.cpu.cpuNum}个</cite>
												</p>
										</a></li>
										<li class="layui-col-xs2"><a href="javascript:;" class="x-admin-backlog-body">
												<h3>用户使用率</h3>
												<p>
													<cite>${server.cpu.used}%</cite>
												</p>
										</a></li>
										<li class="layui-col-xs2"><a href="javascript:;" class="x-admin-backlog-body">
												<h3>系统使用率</h3>
												<p>
													<cite>${server.cpu.sys}%</cite>
												</p>
										</a></li>
										<li class="layui-col-xs2"><a href="javascript:;" class="x-admin-backlog-body">
												<h3>当前空闲率</h3>
												<p>
													<cite>${server.cpu.free}%</cite>
												</p>
										</a></li>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</fieldset>
		<fieldset class="layui-elem-field">
			<legend>内存</legend>
			<div class="layui-field-box">
				<table class="layui-table" lay-skin="line">
					<thead>
						<tr>
							<th>属性</th>
							<th>内存</th>
							<th>JVM</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<th>总内存</th>
							<td>${server.mem.total}GB</td>
							<td>${server.jvm.total}MB</td>
						</tr>
						<tr>
							<th>已用内存</th>
							<td>${server.mem.used}GB</td>
							<td>${server.jvm.used}MB</td>
						</tr>
						<tr>
							<th>剩余内存</th>
							<td>${server.mem.free}GB</td>
							<td>${server.jvm.free}MB</td>
						</tr>
						<tr>
							<th>使用率</th>
							<td>${server.mem.usage}%</td>
							<td>${server.jvm.usage}%</td>
						</tr>
					</tbody>
				</table>
			</div>
		</fieldset>

		<fieldset class="layui-elem-field">
			<legend>服务器信息</legend>
			<div class="layui-field-box">
				<table class="layui-table">
					<tbody>
						<tr>
							<th>服务器名称</th>
							<td>${server.sys.computerName}</td>
						</tr>
						<tr>
							<th>操作系统</th>
							<td>${server.sys.osName}</td>
						</tr>
						<tr>
							<th>服务器IP</th>
							<td>${server.sys.computerIp}</td>
						</tr>
						<tr>
							<th>系统架构</th>
							<td>${server.sys.osArch}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</fieldset>
		<fieldset class="layui-elem-field">
			<legend>Java虚拟机信息</legend>
			<div class="layui-field-box">
				<table class="layui-table">
					<tbody>
						<tr>
							<th>Java名称</th>
							<td>${server.jvm.name}</td>
						</tr>
						<tr>
							<th>Java版本</th>
							<td>${server.jvm.version}</td>
						</tr>
						<tr>
							<th>启动时间</th>
							<td>${server.jvm.startTime}</td>
						</tr>
						<tr>
							<th>运行时长</th>
							<td>${server.jvm.runTime}</td>
						</tr>
						<tr>
							<th>安装路径</th>
							<td>${server.jvm.home}</td>
						</tr>
						<tr>
							<th>项目路径</th>
							<td>${server.sys.userDir}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</fieldset>
		<fieldset class="layui-elem-field">
			<legend>磁盘状态</legend>
			<div class="layui-field-box">
				<table class="layui-table">
					<tbody>
					<thead>
						<tr>
							<th>盘符路径</th>
							<th>文件系统</th>
							<th>盘符类型</th>
							<th>总大小</th>
							<th>可用大小</th>
							<th>已用大小</th>
							<th>已用百分比</th>
						</tr>
					</thead>
					<tbody>
						@ for(sysFile in server.sysFiles){
						<tr>
							<td>${sysFile.dirName}</td>
							<td>${sysFile.sysTypeName}</td>
							<td>${sysFile.typeName}</td>
							<td>${sysFile.total}GB</td>
							<td>${sysFile.free}GB</td>
							<td>${sysFile.used}GB</td>
							<td>${sysFile.usage}</td>
						</tr>
						@}
					</tbody>
					</tbody>
				</table>
			</div>
		</fieldset>
		<blockquote class="layui-elem-quote layui-quote-nm">祝大家每天快快乐乐</blockquote>
	</div>
	<script>
		var _hmt = _hmt || [];
		(function() {
			var hm = document.createElement("script");
			hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
			var s = document.getElementsByTagName("script")[0];
			s.parentNode.insertBefore(hm, s);
		})();
	</script>
</body>
</html>